#ifndef EDITOR_H
#define EDITOR_H
#include <Qsci/qsciscintilla.h>
#include <Qsci/qscilexercpp.h>
#include <QFrame>

class QsciLexerCPP;

class EEditor : public QsciScintilla
{

public:
    EEditor(QWidget *parent=0);
    void setupDefaults();
    void setupDefaultLexer();
    void setFilePath(QString);
    QString filePath();
    void setCurrentFile(const QString&);
    void setFont(const QFont &f);
public slots:
    bool save();
    bool saveAs();
private:
    bool saveFile(QString);
    QString m_openedFilePath;
    QsciLexerCPP *lexer;
};

#endif // EDITOR_H
